﻿<Core:DXWindow xmlns:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing"  x:Class="ThanNhanTao.frmThongKeBenhNhan"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        xmlns:Core="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        xmlns:local="clr-namespace:ConvertCustom"
        xmlns:common="clr-namespace:ThanNhanTao.CommonControl"
        xmlns:my="clr-namespace:ThanNhanTao.CommonControl"
        Core:ThemeManager.ThemeName="Office2007Blue" Icon="/ThanNhanTao;component/Images/Icons/print-16x16.png"             
        Title="Thống kê bệnh nhân" WindowState="Maximized">
    <Core:DXWindow.Resources>
        <Style TargetType="Label">
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="dxe:DateEdit">
            <Setter Property="Margin" Value="2,2" />
        </Style>
        <Style TargetType="dxe:ComboBoxEdit">
            <Setter Property="Margin" Value="1,1" />
        </Style>
        <Style TargetType="Button">
            <Setter Property="Margin" Value="3,3" />
        </Style>
    </Core:DXWindow.Resources>
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="188"></RowDefinition>
                <RowDefinition Height="5"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <GroupBox Header="Thông tin thống kê">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="28"></RowDefinition>
                        <RowDefinition Height="28"></RowDefinition>
                        <RowDefinition Height="28"></RowDefinition>
                        <RowDefinition Height="28"></RowDefinition>
                        <RowDefinition Height="10"></RowDefinition>
                        <RowDefinition Height="30"></RowDefinition>
                        <RowDefinition Height="12*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="360"></ColumnDefinition>
                        <ColumnDefinition Width="10"></ColumnDefinition>
                        <ColumnDefinition Width="70"></ColumnDefinition>
                        <ColumnDefinition Width="200"></ColumnDefinition>
                        <ColumnDefinition Width="10"></ColumnDefinition>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="120"></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <my:CalendarControl x:Name="calendar" Grid.RowSpan="4"></my:CalendarControl>
                    <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" Grid.Column="2">
                        <RadioButton Content="Tất cả" Grid.Row="1" HorizontalAlignment="Left" Name="rdoTatCa" VerticalAlignment="Center" GroupName="TrangThaiBenhNhan" IsChecked="True"/>
                        <RadioButton Content="Đang diều trị" VerticalAlignment="Center" Margin="15,0,0,0" Name="rdoDangDieuTri" GroupName="TrangThaiBenhNhan"/>
                        <RadioButton Content="Đã ra viện" Margin="15,0,0,0" Name="rdoRaVien" VerticalAlignment="Center" GroupName="TrangThaiBenhNhan"/>
                    </StackPanel>
                    <Label Content="Khu vực:" Grid.Column="2" Grid.Row="2"/>
                    <dxe:ComboBoxEdit Grid.Column="3" Grid.Row="2" Name="cboKhuVuc">
                        <dxe:ComboBoxEditItem Content=" -- Tất cả --"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu A"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu B"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu C"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu D"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <Label Content="Hồ sơ:" Grid.Column="2" Grid.Row="3"/>
                    <dxe:ComboBoxEdit Grid.Column="3" Grid.Row="3" Name="cboHoSo" SelectedIndex="0" IsTextEditable="False">
                        <dxe:ComboBoxEditItem Content=" -- Tất cả --"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Nội trú"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Ngoại trú"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <Label Content="Bệnh nhân:" Grid.Column="5" Grid.Row="3"/>
                    <dxe:ComboBoxEdit Grid.Column="6" Grid.Row="3" Name="cboLoaiBenhNhan" SelectedIndex="0" IsTextEditable="False">
                        <dxe:ComboBoxEditItem Content=" -- Tất cả --"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Cấp cứu"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Mãn tính"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <Label Content="Nơi ĐKBĐ:" Grid.Column="2" Grid.Row="1" />
                    <dxe:ComboBoxEdit Grid.Column="3" Grid.Row="1" Name="cboNoiDKBD" AutoComplete="True">
                    </dxe:ComboBoxEdit>
                    <Label Content="Giới tính:" Grid.Column="5" />
                    <dxe:ComboBoxEdit Grid.Column="6" Name="cboGioiTinh">
                        <dxe:ComboBoxEditItem Content=" -- Tất cả --"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Nam"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Nữ"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <Label Content="Nhóm máu:" Grid.Column="5" Grid.Row="1" />
                    <dxe:ComboBoxEdit Grid.Column="6" Grid.Row="1" Name="cboNhomMau">
                        <dxe:ComboBoxEditItem Content=" -- Tất cả --"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="AB"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="A"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="B"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="O"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="RH"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <StackPanel Orientation="Horizontal" Grid.ColumnSpan="5" Grid.Column="5" Grid.Row="2" HorizontalAlignment="Left">
                        <Label Content="Độ tuổi từ:" />
                        <CheckBox Name="chkDoTuoi" Checked="chkDoTuoi_Checked" Unchecked="chkDoTuoi_Unchecked"></CheckBox>
                    </StackPanel>
                    <dxe:SpinEdit Grid.Column="6" Grid.Row="2" Margin="1,1,58,1" Name="spinEditDoTuoiTu" MinValue="0" Increment="10" MaxValue="200" EditValue="20" IsEnabled="False"/>
                    <dxe:SpinEdit Grid.Column="6" Grid.Row="2" Margin="62,1,1,1" Name="spinEditDoTuoiDen" MinValue="0" Increment="10" MaxValue="200" EditValue="30" IsEnabled="False"/>
                    <StackPanel Orientation="Horizontal" Grid.ColumnSpan="5" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Right">
                        <Button Content="Thống kê" Name="btnThongKe" Width="80" Click="btnThongKe_Click" />
                        <Button Content="Đóng" Name="btnDong" Width="80" Click="btnDong_Click" />
                    </StackPanel>
                </Grid>
            </GroupBox>
            <dxp:DocumentPreview Name="preview" Grid.Row="2"/>
        </Grid>
    </Grid>
</Core:DXWindow>
